//
//  SSFirstPageTravelHotCityCellCell.m
//  Travel_World
//
//  Created by dlios on 15/10/14.
//  Copyright © 2015年 TLS. All rights reserved.
//

#import "SSFirstPageTravelHotCityCellCell.h"
#import "Masonry.h"

@implementation SSFirstPageTravelHotCityCellCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.cityImageView = [[UIImageView alloc] initWithFrame:self.contentView.frame];
        [self.contentView addSubview:self.cityImageView];
        
        self.cnnameLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.contentView.frame.size.height - 20, self.contentView.frame.size.width, 20)];
        self.cnnameLabel.backgroundColor = [UIColor blackColor];
        self.cnnameLabel.alpha = 0.5;
        self.cnnameLabel.font = [UIFont systemFontOfSize:14];
        self.cnnameLabel.textColor = [UIColor whiteColor];
        [self.contentView addSubview:self.cnnameLabel];
        
        [self.cityImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            
            make.left.and.top.right.bottom.equalTo(self.contentView);
            
        }];
        
        [self.cnnameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            
            make.left.and.right.bottom.equalTo(self.contentView);
            make.top.equalTo(self.contentView.mas_bottom).offset(-20);
        }];
    }
    
    return self;
}

@end
